import request from '@/utils/request'

export function getAreaList() {
  return request({
    url: '/manager/area/areaCascadeSupply',
    method: 'post'
  })
}

export function getList(params) {
  return request({
    url: '/manager/school/list',
    method: 'post',
    data:params
  })
}

export function getId(id) {
  return request({
    url: '/manager/school/detail',
    method: 'post',
    data: { id:id }
  })
}

export function update(params) {
  return request({
    url: '/manager/school/modify',
    method: 'post',
    data: params
  })
}

export function toggleId(params) {
  return request({
    url: `/manager/school/operate`,
    method: 'post',
    data:params
  })
}

export function add(params) {
  return request({
    url: '/manager/school/create',
    method: 'post',
    data: params
  })
}

